<% restAPIArr.forEach(restAPI => { %>
<%= restAPI.url %>:
  <%= restAPI.method.toLocaleLowerCase() %>:
    description: <%= restAPI.description %><%
    if (!_.isEmpty(restAPI.queryParameters)) {
%>
    queryParameters:<%
      _.forEach(restAPI.queryParameters, (param) => {%>
      <%= param.name %>:
        example: <%= param.example %><%
      });
    }
    if (!_.isEmpty(restAPI.body)) {
%>
    body:
      example: |
        <%= restAPI.body.text %><%
    }
%>
    responses:<%
    restAPI.responses.forEach(response => {
%>
      <%= response.code %>:
        body:
          example: |
<%= indentString(response.body.text, 12) %><%
    });
%>
<% }) %>
